//
//  FDTwoTableViewCell.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "FDTwoTableViewCell.h"

@implementation FDTwoTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createMyView];
    }
    return self;
}


- (void)createMyView

{
    self.tasteLabel = [[[UILabel alloc] init ]autorelease];
    [self.contentView addSubview:self.tasteLabel];
    
    self.tasteLabelD = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.tasteLabelD];
    
    self.timeLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.timeLabel];
    
    self.timeLabelD = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.timeLabelD];
    
    self.nanduLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.nanduLabel];
    
    
    self.nanduLabelD = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.nanduLabelD];
    
    self.artLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.artLabel];
    
    self.artLabelD = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.artLabelD];
    
    self.showLabel = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.showLabel];
    
    self.num = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.num];
    
    
    self.step = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.step];
    
    
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.tasteLabelD.frame = CGRectMake(150, 0, 40, 30);
    self.tasteLabelD.backgroundColor = [UIColor clearColor];
    self.tasteLabelD.textColor = [UIColor greenColor];
    self.tasteLabelD.layer.borderWidth = 2;
    self.tasteLabelD.layer.borderColor = [UIColor grayColor].CGColor;
    self.tasteLabelD.textAlignment = NSTextAlignmentCenter;
    
    self.tasteLabel.frame = CGRectMake(150, 30, 40, 30);
    self.tasteLabel.backgroundColor = [UIColor clearColor];
    self.tasteLabel.layer.borderWidth = 2;
    self.tasteLabel.layer.borderColor = [UIColor grayColor].CGColor;
    self.tasteLabel.textAlignment = NSTextAlignmentCenter;
    
    self.timeLabelD.frame = CGRectMake(150, 150, 40, 30);
    self.timeLabelD.backgroundColor = [UIColor clearColor];
    self.timeLabelD.textColor = [UIColor greenColor];
    self.timeLabelD.layer.borderWidth = 2;
    self.timeLabelD.layer.borderColor = [UIColor grayColor].CGColor;
    self.timeLabelD.textAlignment = NSTextAlignmentCenter;
    
    self.timeLabel.frame = CGRectMake(150, 120, 40, 30);
    self.timeLabel.backgroundColor = [UIColor clearColor];
    self.timeLabel.layer.borderWidth = 2;
    self.timeLabel.layer.borderColor = [UIColor grayColor].CGColor;
    self.timeLabel.font = [UIFont systemFontOfSize:13.0];
    
    self.nanduLabelD.frame = CGRectMake(190, 60, 40, 30);
    self.nanduLabelD.backgroundColor = [UIColor clearColor];
    self.nanduLabelD.textColor = [UIColor greenColor];
    self.nanduLabelD.layer.borderWidth = 2;
    self.nanduLabelD.layer.borderColor = [UIColor grayColor].CGColor;
    self.nanduLabelD.textAlignment = NSTextAlignmentCenter;
    
    self.nanduLabel.frame = CGRectMake(190, 90, 40, 30);
    self.nanduLabel.backgroundColor = [UIColor clearColor];
    self.nanduLabel.layer.borderWidth = 2;
    self.nanduLabel.layer.borderColor = [UIColor grayColor].CGColor;
    self.nanduLabel.textAlignment = NSTextAlignmentCenter;
    
    self.artLabelD.frame = CGRectMake(110, 60, 40, 30);
    self.artLabelD.backgroundColor = [UIColor clearColor];
    self.artLabelD.textColor = [UIColor greenColor];
    self.artLabelD.layer.borderWidth = 2;
    self.artLabelD.layer.borderColor = [UIColor grayColor].CGColor;
    self.artLabelD.textAlignment = NSTextAlignmentCenter;
    
    self.artLabel.frame = CGRectMake(110, 90, 40, 30);
    self.artLabel.backgroundColor = [UIColor clearColor];
    self.artLabel.layer.borderWidth = 2;
    self.artLabel.layer.borderColor = [UIColor grayColor].CGColor;
    self.artLabel.textAlignment = NSTextAlignmentCenter;
    
    self.showLabel.frame = CGRectMake(0, 0, 130, 100);
    self.showLabel.backgroundColor = [UIColor clearColor];
    self.showLabel.numberOfLines = 2;
    [self.showLabel sizeToFit];
    
    self.num.frame = CGRectMake(240, 0, 90, 100);
    self.num.backgroundColor = [UIColor clearColor];
    self.num.numberOfLines = 2;
    [self.num sizeToFit];
    
    self.step.frame = CGRectMake(0, 130, 170, 50);
    self.step.backgroundColor = [UIColor clearColor];
    
   
    
}



































- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
